[GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when the...
authorSebastian Geiger <sbastig@gmx.net>
Fri, 31 Aug 2012 17:02:00 +0000 (12:02 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 31 Aug 2012 17:02:00 +0000 (12:02 -0500)
commitafc7466dfdb96c3778b92672f078916cdaf175c3
tree5459c8b00a314c2b2ab24c7f7221496f843f955d
parente5b2ca5d89f6defd1a12ec8f51c5ad4ba6adfbab
[GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when the button's GtkFileChooserDialog is canceled

The file chooser is asynchronous, so doing 'select_file (old_file)' and subsequently querying
the file for updating the labels is not going to work.  However, the underlying file chooser
will emit 'selection-changed' as appropriate when it finishes restoring the old file.  So,
we only need to update the labels when the file chooser dialog is confirmed, not cancelled.
gtk/gtkfilechooserbutton.c